<<<<<<< HEAD
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="../../common/taglib.jsp"%>
<%@ page isELIgnored="false"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName()+":"+request.getServerPort() + path + "/";
%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=8" />
		<title></title>
		
		<link rel="stylesheet" type="text/css"href="${pageContext.request.contextPath}/theme/<%=AppContext.getProperties("systemcolor")%>/css/page.css" />
		<link rel="stylesheet" type="text/css"href="${pageContext.request.contextPath}/theme/<%=AppContext.getProperties("systemcolor")%>/css/a_icon.css" />
		<link rel="stylesheet" type="text/css"href="${pageContext.request.contextPath}/theme/<%=AppContext.getProperties("systemcolor")%>/css/ui/jquery-ui-1.10.3.custom.css"/>
		
		<script type="text/javascript"src="${pageContext.request.contextPath}/script/jquery-1.9.1.js"></script>
		<script type="text/javascript"src="${pageContext.request.contextPath}/script/jquery-ui-1.10.3.custom.js"></script>
		<script type="text/javascript"src="${pageContext.request.contextPath}/script/jquery.form.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/script/validate/jquery.validate.js" ></script>
		
		<script type="text/javascript">
		  function submitSearch(){
		  	$("#search").attr("action","./haveTodo!doListByAppId.action&appName={appName}");
		  	if($("#state").val()!='running'){
		  		$("#search").attr("action","./haveTodo!doListByAppId.action&appName={appName}");
			}else{
		  		$("#search").attr("action","./haveTodo!haveTodoRunWork.action");				
			}
		  	var form=document.search;
			form.submit();
		  }
		</script>
	</head>
	<body>
		<div class="searchPanel">
			<form id="search" name="search"  method="post" class="search" style="margin-top: 8px; border-right-width: 8px; margin-right: 18px;">
				<s:if test="entity.workTitle == null">
					<input id="title" name="entity.workTitle" type="text" class="input01" value="请输入标题名"
						onblur="if(this.value == '') this.value = this.defaultValue"
						onfocus="if(this.value == this.defaultValue) this.value = ''" />
				</s:if>
				<s:else>
					<input id="title" name="entity.workTitle" type="text" class="input01" value="${entity.workTitle}"
						onblur="if(this.value == '') this.value = '请输入标题名'"
						onfocus="if(this.value == '请输入标题名') this.value = ''" />
				</s:else>
				<input type="hidden" name="appId" value="${appId}"/>
				<input type="hidden" name="state" value="${state}" id="state"/>
				<input type="button" onclick="javascript:submitSearch();" value="查询"/>
			</form>
		</div>
		
		<div class="contentPanel">
		<table>
			<tr>
				<th>标题</th>
				<!-- <th>应用名称</th> -->
				<!-- <th>工作序号</th> -->
				<th>
					借阅人
				</th>
				<th>起草时间</th>
				<th>结束时间</th>
				<th>当前状态</th>
			</tr>
<c:choose>
	<c:when test="${fn:length(list)>0 }">
		<c:forEach items="${list }" var="work">
			<tr>
				<td><a target="_blank"  showname="${work.workTitle }"
					 href="${pageContext.request.contextPath}/jbpmService/getWorkByWorkId?workId=${work.workId }">
					 	<span title="${work.workTitle}" style="width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; text-align: center;display: inline-block;">${work.workTitle}</span>
					</a>
				</td>
				<%-- <td>${work.appName }&nbsp;</td> --%>
				<%-- <td>${work.seqNum }&nbsp;</td> --%>
				<td>${work.starterName }&nbsp;</td>
				<td><fmt:formatDate value="${work.startTime }" pattern="yyyy-MM-dd HH:mm"/>&nbsp;</td>
				<td><fmt:formatDate value="${work.endTime }" pattern="yyyy-MM-dd HH:mm"/>&nbsp;</td>
				<td>
				 	<span title="${work.curActivityName}" style="width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; text-align: center;display: inline-block;">${work.curActivityName}</span>
				</td>
			</tr>
		</c:forEach>
	</c:when>
	<c:otherwise>
		<tr>
          	<td colspan="8">暂时还没有任何工作</td>
        </tr>
	</c:otherwise>
</c:choose>
		 </table>
		</div>
		
		<div class="footPanel">
			<div class="handlePanel">
                
			</div>
			<div class="pagePanel">
				 <thx:pages pageNo="page.curPage" total="page.totalPage" theme="text" styleClass="themeText" >
				 	<s:param name="entity.workTitle" value="entity.workTitle"></s:param>
				 	<s:param name="entity.workType" value="entity.workType"></s:param>
				 	<s:param name="appId" value="appId"></s:param>
				 	<s:param name="appName" value="appName"></s:param>
				 	<s:param name="state" value="state"></s:param>
				 </thx:pages>
			</div>
		</div>
	</body>
=======
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="../../common/taglib.jsp"%>
<%@ page isELIgnored="false"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName()+":"+request.getServerPort() + path + "/";
%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=8" />
		<title></title>
		
		<link rel="stylesheet" type="text/css"href="${pageContext.request.contextPath}/theme/<%=AppContext.getProperties("systemcolor")%>/css/page.css" />
		<link rel="stylesheet" type="text/css"href="${pageContext.request.contextPath}/theme/<%=AppContext.getProperties("systemcolor")%>/css/a_icon.css" />
		<link rel="stylesheet" type="text/css"href="${pageContext.request.contextPath}/theme/<%=AppContext.getProperties("systemcolor")%>/css/ui/jquery-ui-1.10.3.custom.css"/>
		
		<script type="text/javascript"src="${pageContext.request.contextPath}/script/jquery-1.9.1.js"></script>
		<script type="text/javascript"src="${pageContext.request.contextPath}/script/jquery-ui-1.10.3.custom.js"></script>
		<script type="text/javascript"src="${pageContext.request.contextPath}/script/jquery.form.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/script/validate/jquery.validate.js" ></script>
		
		<script type="text/javascript">
		  function submitSearch(){
		  	$("#search").attr("action","./haveTodo!doListByAppId.action&appName={appName}");
		  	if($("#state").val()!='running'){
		  		$("#search").attr("action","./haveTodo!doListByAppId.action&appName={appName}");
			}else{
		  		$("#search").attr("action","./haveTodo!haveTodoRunWork.action");				
			}
		  	var form=document.search;
			form.submit();
		  }
		</script>
	</head>
	<body>
		<div class="searchPanel">
			<form id="search" name="search"  method="post" class="search" style="margin-top: 8px; border-right-width: 8px; margin-right: 18px;">
				<s:if test="entity.workTitle == null">
					<input id="title" name="entity.workTitle" type="text" class="input01" value="请输入标题名"
						onblur="if(this.value == '') this.value = this.defaultValue"
						onfocus="if(this.value == this.defaultValue) this.value = ''" />
				</s:if>
				<s:else>
					<input id="title" name="entity.workTitle" type="text" class="input01" value="${entity.workTitle}"
						onblur="if(this.value == '') this.value = '请输入标题名'"
						onfocus="if(this.value == '请输入标题名') this.value = ''" />
				</s:else>
				<input type="hidden" name="appId" value="${appId}"/>
				<input type="hidden" name="state" value="${state}" id="state"/>
				<input type="button" onclick="javascript:submitSearch();" value="查询"/>
			</form>
		</div>
		
		<div class="contentPanel">
		<table>
			<tr>
				<th>标题</th>
				<!-- <th>应用名称</th> -->
				<!-- <th>工作序号</th> -->
				<th>
					借阅人
				</th>
				<th>起草时间</th>
				<th>结束时间</th>
				<th>当前状态</th>
			</tr>
<c:choose>
	<c:when test="${fn:length(list)>0 }">
		<c:forEach items="${list }" var="work">
			<tr>
				<td><a target="_blank"  showname="${work.workTitle }"
					 href="${pageContext.request.contextPath}/jbpmService/getWorkByWorkId?workId=${work.workId }">
					 	<span title="${work.workTitle}" style="width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; text-align: center;display: inline-block;">${work.workTitle}</span>
					</a>
				</td>
				<%-- <td>${work.appName }&nbsp;</td> --%>
				<%-- <td>${work.seqNum }&nbsp;</td> --%>
				<td>${work.starterName }&nbsp;</td>
				<td><fmt:formatDate value="${work.startTime }" pattern="yyyy-MM-dd HH:mm"/>&nbsp;</td>
				<td><fmt:formatDate value="${work.endTime }" pattern="yyyy-MM-dd HH:mm"/>&nbsp;</td>
				<td>
				 	<span title="${work.curActivityName}" style="width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; text-align: center;display: inline-block;">${work.curActivityName}</span>
				</td>
			</tr>
		</c:forEach>
	</c:when>
	<c:otherwise>
		<tr>
          	<td colspan="8">暂时还没有任何工作</td>
        </tr>
	</c:otherwise>
</c:choose>
		 </table>
		</div>
		
		<div class="footPanel">
			<div class="handlePanel">
                
			</div>
			<div class="pagePanel">
				 <thx:pages pageNo="page.curPage" total="page.totalPage" theme="text" styleClass="themeText" >
				 	<s:param name="entity.workTitle" value="entity.workTitle"></s:param>
				 	<s:param name="entity.workType" value="entity.workType"></s:param>
				 	<s:param name="appId" value="appId"></s:param>
				 	<s:param name="appName" value="appName"></s:param>
				 	<s:param name="state" value="state"></s:param>
				 </thx:pages>
			</div>
		</div>
	</body>
>>>>>>> branch 'master' of https://git.oschina.net/qinggroup/qing-framework.git
</html>
